package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcPatrolRecord;
import com.csun.cmny.provider.model.dto.patrol.PatrolRecordQueryDto;
import com.csun.cmny.provider.model.vo.patrol.PatrolRecordVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcPatrolRecordMapper extends Mapper<DmcPatrolRecord> {

    /**
     * 巡更记录分页查询
     *
     * @param patrolRecordQueryDto  the patrol record query dto
     *
     * @return  the patrol record vo list.
     */
    List<PatrolRecordVo> queryListWithPage(PatrolRecordQueryDto patrolRecordQueryDto);

    /**
     * 巡更条数
     *
     * @param patrolRecordQueryDto  the patrol record query dto
     *
     * @return  the int.
     */
    Integer queryCount(PatrolRecordQueryDto patrolRecordQueryDto);
    /*
    * 根据巡更棒id删除巡更记录
    * */
    void deleteByPatrolId(Long deviceId);

    /*
    * 根据巡更点id删除巡更记录
    * */
    void deleteByPointId(Long deviceId);
}